Speaking Stata: Loops in parallel
نویسندگان
چکیده
This column is a tutorial discussing looping in parallel using foreach and forvalues. Such may use not only local macros defined for the purpose but also other devices, including gettoken command ways to increment decrement evaluate expressions. The main idea that set of loops essentially one loop with two or more sets actions. Examples cover over integers required specific display format, generating new variables defining variable labels at same time, binning as desired, putting skewness results variables. last example includes some historical comments on tangled literature measures medians quantiles.
منابع مشابه
Speaking Stata: Graphing distributions
Graphing univariate distributions is central to both statistical graphics, in general, and Stata’s graphics, in particular. Now that Stata 8 is out, a review of official and user-written commands is timely. The emphasis here is on going beyond what is obviously and readily available, with pointers to minor and major trickery and various user-written commands. For plotting histogram-like display...
متن کاملSpeaking Stata: Problems with tables, Part I
Tables in some form or another are part and parcel of data management and analysis. The main general-purpose tabulation commands, tabulate, table, and tabstat, are reviewed and compared. When these do not provide a tabulation solution, one key strategy is to prepare the material for tabulation as a set of variables, after which the table itself can be presented with tabdisp or list. This is the...
متن کاملSpeaking Stata: Graphing categorical and compositional data
Abstract. A variety of graphs have been devised for categorical and compositional data, ranging from widely familiar to more unusual displays. Both official Stata commands and user-written programs are available. After a stacking trick for binary responses is explained, bar charts and related displays for cross-tabulations are discussed in detail. Tips and tricks are introduced for plotting cum...
متن کاملRegular Loops ssively Parallel Systems
Distributed-memory systems can incorporate thousands of processors at a reasonable cost. However, with an increasing number of processors in a system, fault detection and fault tolerance become critical issues. By replicating the computation on more than one processor and comparing the results produced by these processors, errors can be detected. During the execution of a program, due to data d...
متن کاملRobust Regression in Stata
In regression analysis, the presence of outliers in the data set can strongly distort the classical least squares estimator and lead to unreliable results. To deal with this, several robust-to-outliers methods have been proposed in the statistical literature. In Stata, some of these methods are available through the commands rreg and qreg. Unfortunately, these methods only resist to some specif...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
ژورنال
عنوان ژورنال: Stata Journal
سال: 2021
ISSN: ['1536-867X', '1536-6873', '1536-8734']
DOI: https://doi.org/10.1177/1536867x211063415